package com.hnjd.headline.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hnjd.headline.pojo.Headline;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hnjd.headline.pojo.dto.HeadlineDetail;
import com.hnjd.headline.pojo.dto.HeadlineDto;
import com.hnjd.headline.pojo.dto.HeadlineEditEcho;
import com.hnjd.headline.pojo.dto.PortalVo;
import org.apache.ibatis.annotations.Mapper;

/**
 * (news_headline)数据Mapper
 *
 * @author kancy
 * @description 由 Mybatisplus Code Generator 创建
 * @since 2025-06-16 15:53:03
 */
@Mapper
public interface HeadlineMapper extends BaseMapper<Headline> {

    IPage<HeadlineDto> selectHeadlineToPage(IPage<HeadlineDto> page, PortalVo portalVo);

    HeadlineDetail selectHeadlineDetailById(Integer id);

    HeadlineEditEcho selectHeadlineEditById(Integer id);
}
